Hello I'm trying to run node index.js load but i'm getting an error
Deploying slash commands
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (C:\Users\lenovo\Bot musique\node_modules\@discordjs\rest\dist\index.js:753:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\lenovo\Bot musique\node_modules\@discordjs\rest\dist\index.js:565:14)
at async REST.request (C:\Users\lenovo\Bot musique\node_modules\@discordjs\rest\dist\index.js:999:22) {
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v9/applications/984485482647916575/guilds/982949720320274512/commands',
requestBody: {
files: undefined,
json: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
}
}
I've tried removing the bot and re-permissioning it via the developer web console before re-adding it. I've checked and re-added the token clientId and guildId and I get the same error message every time. I can see it's not getting access but I've no idea where else access would be granted from.